import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/sms_send_entity.dart';

SmsSendEntity $SmsSendEntityFromJson(Map<String, dynamic> json) {
  final SmsSendEntity smsSendEntity = SmsSendEntity();
  final bool? state = jsonConvert.convert<bool>(json['state']);
  if (state != null) {
    smsSendEntity.state = state;
  }
  final String? msg = jsonConvert.convert<String>(json['msg']);
  if (msg != null) {
    smsSendEntity.msg = msg;
  }
  return smsSendEntity;
}

Map<String, dynamic> $SmsSendEntityToJson(SmsSendEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['state'] = entity.state;
  data['msg'] = entity.msg;
  return data;
}

extension SmsSendEntityExtension on SmsSendEntity {
  SmsSendEntity copyWith({
    bool? state,
    String? msg,
  }) {
    return SmsSendEntity()
      ..state = state ?? this.state
      ..msg = msg ?? this.msg;
  }
}